# -*- coding:utf-8 -*-
import BasePage

class BaiduPage(BasePage.BasePage):
    test_url = 'https://www.baidu.com/'
    search_box = "id>>>kw"  # 通过id定位搜索框
    search_button = "id>>>su"  # 通过id定位"百度一下"button

    # 输入搜索内容到搜索框
    def input_search_text(self, text):
        self.driver.enter(self.search_box, text)

    # 点击搜索按钮
    def click_search_button(self):
        self.driver.click(self.search_button)